package erlwitch.parser.structure;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Module {

	private String name;
	private Map<String, Function> funMap = new HashMap<String, Function>();
	private List<Function> funList = new ArrayList<Function>();
	
	public Module(String name, List<Function> funList) {
		super();
		this.name = name;
		this.funList = funList;
		funMap = new HashMap<String, Function>();
		for (Function f: funList) {
			funMap.put(f.getNameArity(), f);
		}
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Map<String, Function> getFunMap() {
		return funMap;
	}
	public void setFunMap(Map<String, Function> funMap) {
		this.funMap = funMap;
	}
	public List<Function> getFunList() {
		return funList;
	}
	public void setFunList(List<Function> funList) {
		this.funList = funList;
	}
	
}
